package com.heima.estatemanagement.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 房屋表
 * @TableName tb_house
 */

public class TbHouse implements Serializable {
    /**
     * 房屋ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 所属小区ID
     */
    private Integer communityId;

    /**
     * 所属栋数ID
     */
    private Integer buildingId;

    /**
     * 房产编码
     */
    private String code;

    /**
     * 户主（业主）ID
     */
    private Integer ownerId;

    /**
     * 室内面积
     */
    private Integer area;

    /**
     * 房间数
     */
    private Integer roomNum;

    /**
     * 单元
     */
    private Integer unitId;

    /**
     * 楼层
     */
    private Integer floor;

    /**
     * 描述
     */
    private String description;

    /**
     * 入住时间
     */
    private Date liveTime;

    private String cname;//联查小区表 小区名
    private String oname;//联查业主表 业主名
    private String bname;//联查栋数表 栋数名
    private String huname;//联查单元表 单元名

    @Override
    public String toString() {
        return "TbHouse{" +
                "id=" + id +
                ", communityId=" + communityId +
                ", buildingId=" + buildingId +
                ", code='" + code + '\'' +
                ", ownerId=" + ownerId +
                ", area=" + area +
                ", roomNum=" + roomNum +
                ", unitId=" + unitId +
                ", floor=" + floor +
                ", description='" + description + '\'' +
                ", liveTime=" + liveTime +
                ", cname='" + cname + '\'' +
                ", oname='" + oname + '\'' +
                ", bname='" + bname + '\'' +
                ", huname='" + huname + '\'' +
                '}';
    }

    public String getHuname() {
        return huname;
    }

    public void setHuname(String huname) {
        this.huname = huname;
    }

    public String getOname() {
        return oname;
    }

    public void setOname(String oname) {
        this.oname = oname;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }


    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }


    public Integer getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(Integer roomNum) {
        this.roomNum = roomNum;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unit) {
        this.unitId = unit;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description1) {
        this.description = description1;
    }

    public Date getLiveTime() {
        return liveTime;
    }

    public void setLiveTime(Date liveTime) {
        this.liveTime = liveTime;
    }
}